package mail.fetch.netease;

/**
 * @author: Hanjiafeng
 * @date: Created in 17:32 2019/2/28
 * @desc: 邮箱类型枚举
 */
public enum MailType {
    /**
     * 163邮箱
     */
    MAIL_163,
    /**
     * 126邮箱
     */
    MAIL_126,
    /**
     * yeah邮箱
     */
    MAIL_YEAH;

    /**
     * 该邮箱是否为网易邮箱
     *
     * @param mailType 邮箱类型
     * @return true:是,false:否
     */
    public static boolean isNotNetEase(MailType mailType) {
        return !mailType.equals(MAIL_163) && !mailType.equals(MAIL_126) && !mailType.equals(MAIL_YEAH);
    }
}